package com.trade.core.config;


import com.trade.core.trade.ITradeProcessorStep;
import com.trade.core.trade.TradeBuild;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.ComponentScan;
import org.springframework.context.annotation.Configuration;

import java.util.List;

/**
 * @author sven.wang
 * @version 2021/12/7 17:35
 * @Description:
 */
@Configuration
@ComponentScan({
        "com.trade.core"
})
public class TradeConfiguration {

    @Bean
    public TradeBuild getTradeBuild(List<ITradeProcessorStep> tradeProcessorSteps) {
        return new TradeBuild(tradeProcessorSteps);
    }
}
